import request from '@/utils/request'

export function submit(data) {
  return request({
    url: 'buss-measure/modifyFeeApply/add',
    method: 'post',
    data
  })
}

export function getOne(id) {
  return request.get('buss-measure/modifyFeeApply/getOne?id='+id)
}

export function getTablePage(data) {
  return request.post('buss-measure/modifyFeeApply/listPage', data)
}
export function getScopeProjects() {
  return request.get('buss-measure/modifyFeeApply/getScopeProjects')
}

export function del(ids) {
  return request({
    url: 'buss-measure/modifyFeeApply/del',
    method: 'post',
    data: ids
  })
}

export function resubmit(data) {
  return request({
    url: 'buss-measure/modifyFeeApply/edit',
    method: 'post',
    data
  })
}
export function getSupervisedCompany() {
  return request.get('buss-measure/modifyFeeApply/getSupervisedCompany')
}
export function findGroupSupervise(projectId) {
  return request.get('buss/groupsupervisehandle/findGroupSupervise?projectId='+projectId)
}
export function getSupervisedDept(sectionId) {
  return request.get('buss-measure/modifyFeeApply/getSupervisedDept?sectionId='+sectionId)
}
export function findDeptByCompanyId(companyId) {
  return request.get('buss-measure/modifyFeeApply/findDeptByCompanyId?companyId='+companyId)
}
export function getSupervisedOperator(deptId) {
  return request.get('buss-measure/modifyFeeApply/getSupervisedOperator?deptId='+deptId)
}
export function audit(data) {
  return request({
    url: 'buss-measure/modifyFeeApply/audit',
    method: 'post',
    data
  })
}


export function report(data) {
  return request({
    url: 'buss-measure/modifyFeeApply/report',
    method: 'post',
    data
  })
}

export function getSupervisedNumber(data) {
  return request.post('buss-measure/modifyFeeApply/getSupervisedNumber', data)
}

export default {
  submit,
  getOne,
  del,
  resubmit,
  getScopeProjects,
  getTablePage,
  getSupervisedCompany,
  getSupervisedOperator,
  audit,
  report,
  findGroupSupervise,
  findDeptByCompanyId,
  getSupervisedDept,
  getSupervisedNumber
}
